<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	>
	<ui:define name="content">
	
		<ui:include src="/includes/menu.xhtml"></ui:include>
		
		<h2><h:outputText value="Nová událost" /></h2>
		
		<h:form>
		<h:panelGrid columns="2">
		
            <h:outputText value="Nadpis" />
            <h:inputText value="#{createEventBean.description}" />
            
            <h:outputText value="Popis události" />
            <h:inputTextarea value="#{createEventBean.text}" />
            
             <h:outputText value="Datum:" />
             <rich:calendar value="#{createEventBean.eventDate}"
                        locale="CZ"
                        popup="true"
                        datePattern="yyyy-M-d hh:mm:ss"
                        showApplyButton="#{calendarBean.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"/>
            
            
            <h:commandButton value="Založ událost" action="#{createEventBean.createEvent()}"  />
        </h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>